Interface IRedbMigration<TProps>

Assembly: redb.Core.Pro.dll

Migration configuration interface for Props type.
Analogy with IEntityTypeConfiguration in EF Core.
Usage example:
public class OrderPropsMigration : IRedbMigration<OrderProps>
{
public void Configure(IMigrationBuilder<OrderProps> builder)
{
builder.Property(p => p.TotalPrice)
.ComputedFrom(p => p.Quantity * p.Price);
}
}

public interface IRedbMigration<TProps> where TProps : class

Methods

Configure(IMigrationBuilder<TProps>)

Configure migrations for properties

void Configure(IMigrationBuilder<TProps> builder)